﻿@model IEnumerable<RedSand.Site.Models.AdvertiseInfo>
<div class="panel" id="slide-list">
    <div class="panel-header">
      <span>  Advertise</span>
       @Ajax.ActionLink("Thêm quảng cáo", "create", null, AdminAjaxOptions.GetForm, new { @class = "btnAddNew ",@style="width:120px" })</div>
    <div class="dialog-content">
        @if (Model != null)
        {
            <ul>
                @foreach (var item in Model)
                { 
                    <li>
                        <div>
                            <span>@item.Title</span>
                            @Ajax.ActionLink("Xóa", "delete", new { id = item.AdvId, image = item.Image }, AdminAjaxOptions.DeleteRecord, new { @class = "btnAction btnDelete", title = "Xóa" })
                            @Ajax.ActionLink("Sửa", "edit", new { id = item.AdvId }, AdminAjaxOptions.GetForm, new { @class = "btnAction btnEdit", title = "Sửa" })
                        </div>
                        <span class="slide-list-status">@DropDownListHelper.GetStatusString(item.Status)</span>
                        <img src="@RedSand.Site.GlobalClass.GetImageUrl(item.Image)" alt="" width="200" />
                    </li>
                }
            </ul>
        }
    </div>
    <div class="dialog-footer">
       
    </div>
</div>
